| Conditions | 2 |
| Total Lines | 18 |
| Code Lines | 13 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | import path from 'path'; |
||
| 3 | |||
| 4 | async function main() { |
||
| 5 | try { |
||
| 6 | // The folder containing the Extension Manifest package.json |
||
| 7 | // Passed to `--extensionDevelopmentPath` |
||
| 8 | const extensionDevelopmentPath = path.resolve(__dirname, '../../'); |
||
| 9 | |||
| 10 | // The path to test runner |
||
| 11 | // Passed to --extensionTestsPath |
||
| 12 | const extensionTestsPath = path.resolve(__dirname, './suite/index'); |
||
| 13 | |||
| 14 | // Download VS Code, unzip it and run the integration test |
||
| 15 | await runTests({ extensionDevelopmentPath, extensionTestsPath }); |
||
| 16 | } catch (error) { |
||
| 17 | console.error('runTest:', error); |
||
| 18 | console.error('Failed to run tests'); |
||
| 19 | // eslint-disable-next-line no-process-exit |
||
| 20 | process.exit(1); |
||
| 21 | } |
||
| 25 |